﻿using CommunityToolkit.Mvvm.ComponentModel;
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;

namespace DemoMedia.Models
{
    public class MainWindowM : ObservableObject
    {
        private ObservableCollection<Movie> movies;

        public ObservableCollection<Movie> Movies
        {
            get { return movies; }
            set { SetProperty(ref movies, value); }
        }

        private Movie curMovie;

        public Movie CurMovie
        {
            get { return curMovie; }
            set { SetProperty(ref curMovie, value); }
        }

        private Uri curSource;

        public Uri CurSource
        {
            get { return curSource; }
            set { SetProperty(ref curSource, value); }
        }

        private string timeLen;

        public string TimeLen
        {
            get { return timeLen; }
            set { SetProperty(ref timeLen, value); }
        }

        private double mediaMaximum;

        public double MediaMaximum
        {
            get { return mediaMaximum; }
            set { SetProperty(ref mediaMaximum, value); }
        }

        private double position;

        public double Position
        {
            get { return position; }
            set { SetProperty(ref position, value); }
        }

        private Visibility playButtonVisibility;

        public Visibility PlayButtonVisibility
        {
            get { return playButtonVisibility; }
            set { SetProperty(ref playButtonVisibility, value); }
        }
    }
}
